const db = uniCloud.database();

module.exports = {
	_before: function () { // 通用预处理器

	},
	
	async money(user_id){
		let resUser = await db.collection("uni-id-users").doc(user_id).get()
		return {
			money: resUser.data[0].money
		}
	}
	
}
